﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace HomeDms
{
    public partial class AddNewTagForm : Form
    {
        private string _returnName;

        public string ReturnName
        {
            get { return _returnName; }
        }
	
        public AddNewTagForm()
        {
            InitializeComponent();
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(txtName.Text))
            {
            }
            else
            {
                _returnName = txtName.Text;
            }
            this.DialogResult = DialogResult.OK;
            this.Close();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            this.Close();
        }

        private void AddNewTagForm_Load(object sender, EventArgs e)
        {
            txtName.Text = PlaningTagName;
        }

        public string PlaningTagName { get; set; }
    }
}
